import request from '@/config/axios'

// 删除电费支付
export const deletePayElecCharge = async (id: number) => {
  return await request.delete({
    url: '/zwsj/pay-elec-charge/delete?id=' + id,
    method: 'delete'
  })
}

// 获得电费支付分页
export const getPayElecChargePage = async (params: any) => {
  return await request.get({
    url: '/zwsj/pay-elec-charge/page',
    params: params
  })
}

//导出
export const exportPayElecCharge = async (params: any) => {
  return request.download({ url: '/zwsj/pay-elec-charge/export', params })
}

// 获取银联支付结果
export const getUnionMiniPayOrderInfo = async (payElecChargeId: number) => {
  return await request.get({
    url: `/zwsj/pay-elec-charge/union/pay/order/info?payElecChargeId=` + payElecChargeId
  })
}

// 获得电表已完成支付的支付列表
export const getPayedElecChargePageOfMeter = async (params: any) => {
  return await request.get({
    url: `/zwsj/pay-elec-charge/meter/pay/finish`,
    params: params
  })
}
